/*$( "#dnaName" ).autocomplete({
	  source: function( request, response ) {
	       $.ajax({
             url: $("#basePath").val()+"/ajax.form?key=autocomplete",
             dataType: "json",
             data: request,
             success: function(data) {
                 response(data.a);
             },
	      });
	 }
});*/
$.ajax({
    url: $("#basePath").val()+"/ajax.form?key=autocomplete",
    dataType: "json",
    success: function(data) {
    	$( "#dnaName" ).autocomplete({
    		  source:data.dnaName
    	});
    	$( "#dnaCoder" ).autocomplete({
  		  source:data.dnaCoder
    	});
    	$( "#dnaSource" ).autocomplete({
    		  source:data.dnaSource
      	});
    },
});
function cornSelect(){
	$.ajax({
        type: "POST",
        url:$("#basePath").val()+$('#cornSelectForm').attr("action"),
        data:$('#cornSelectForm').serialize(),// 你的formid
        async: false,
        error: function(request) {
            alert("Connection error");
        },
        success: function(data) {
        	addTab_('corn-select-result','corn-select-result',data,"查询结果",true,true);
        }
    });

}